package project;
import java.sql.*;


public class Test {
    public static void main(String[] args){
    try {
           Class.forName("com.mysql.jdbc.Driver").newInstance();
	} catch (Exception e) {
            System.out.println("Error loading Driver");
	}
    Connection conn = null;
    try{
         conn = DriverManager.getConnection("jdbc:mysql://localhost:3306/numberTrans2",
		"root","password");
        Statement stmt = conn.createStatement();
        ResultSet result = stmt.executeQuery("select english from numbers2 where symbol = 16");
        result.first();
        System.out.println(result.getString(1));
    } catch (SQLException e){
        System.err.println(e.getMessage());
    }
    }
}
